// components/header.js
Component({
	ready () {
		this.setHeight();	
	},
  properties: {},
  data: {
		barHeight:'',
		menuPad:'',
		menuHeight:'',
  },
  methods: {
		setHeight(){
			let systemInfo = wx.getSystemInfoSync();
			let menuInfo = wx.getMenuButtonBoundingClientRect();
			this.data.barHeight = systemInfo.statusBarHeight;
			this.data.menuPad = menuInfo.top;
			this.data.menuHeight =menuInfo.height; 
			this.setData({
				barHeight: this.data.barHeight,
				menuPad:this.data.menuPad,
				menuHeight:this.data.menuHeight
			})
		},
  }
})
